package com.lichuang.dedao.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

/**
 * <p>
 * 收藏
 * </p>
 *
 * @author hanghang
 * @since 2019-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Collection对象", description = "收藏")
@Alias("collectible")
public class Collection implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收藏id")
    @TableId(value = "collection_id", type = IdType.AUTO)
    private Integer collectionId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "收藏品类型，0=课程，1=听书，2=书单，3=专题")
    private Integer collectionType;

    @ApiModelProperty(value = "收藏品id")
    private Integer objectId;

    @ApiModelProperty(value = "是否收藏，0=已收藏，1=未收藏")
    private Integer status;

    @ApiModelProperty(value = "收藏时间")
    private LocalDateTime collectionTime;


}
